package com.example.qxfw.ybzz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.qxfw.common.entity.xt.Users;
import com.example.qxfw.ybzz.mapper.UsersMapper;
import com.example.qxfw.ybzz.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<Users> getList(Integer userId) {
        QueryWrapper<Users> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id",userId);
        List<Users> users = usersMapper.selectList(queryWrapper);
        return users;
    }
}
